import http from "./index";

// 验证码请求
export const captchaApi = (phone)=>
    http({
        url:"/sms/captcha",
        method:"POST",
        params:{
            phone
        }
    })

// 登录请求
export const loginApi = (username,password,captcha)=> 
    http({
        url:"/admin/login",
        method:"POST",
        params:{
            phone:username,
            pwd:password,
            code:captcha
        }
    })